package ms.unicorn.dsl.eistar.util;

public class Probability {
	public static int ONE = 100;
	
	public static int mult(int p1, int p2) {
		return p1 * p2 / ONE;
	}
	
	public static int add(int p1, int p2) {
		return Math.min(ONE, p1 + p2);
	}
	
	public static int complement(int p1) {
		return Math.max(0, ONE - p1);
	}
}
